import { defineStore } from 'pinia';

export const useConsumptionStore = defineStore('consumption', {
  state: () => ({
    records: []
  }),
  actions: {
    addRecord(record) {
      this.records.push(record);
    },
    setRecords(records) {
      this.records = records;
    },
    clearRecords() {
      this.records = [];
    }
  }
}); 